package com.atguigu.eduService.mapper;

import com.atguigu.eduService.entity.EduChapter;
import com.atguigu.eduService.entity.chapter.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author smday
 * @since 2020-07-27
 */
public interface EduChapterMapper extends BaseMapper<EduChapter> {

    List<Chapter> getAllChaptersByCourseId(@Param("courseId") String courseId);

    List<Chapter> getChapterByCourseId(@Param("courseId")String courseId);
}
